import request from "./http";

export function getRank() {
    return request({
        url: '/toplist',
        method: 'get'
    })
}

export function getRank_detail() {
    return request({
        url: '/toplist/detail',
        method: 'get'
    })
}

// 歌单详情
export function getDetail(params) {
    return request({
        url: "playlist/detail",
        method: "get",
        params
    })
}

// http://127.0.0.1:3000/playlist/detail?id=5453912201